Release 10.1A: OpenEdge Development:
Progress 4GL Reference


EQ or = operator

Returns a TRUE value if two expressions are equal.

Syntax

expression { EQ | = } expression 

expression

A constant, field name, variable name, or expression. The expressions on either side of the EQ or = must be of the same data type, although one might be an integer and the other a decimal.

Example

This procedure prompts for the initials of a sales rep. The FOR EACH block reads all the order records for that sales rep. The DISPLAY statement displays information from each of the retrieved records.

r-eq.p
PROMPT-FOR order.sales-rep WITH SIDE-LABELS CENTERED.

FOR EACH order WHERE sales-rep EQ INPUT sales-rep:
  DISPLAY order-num cust-num order-date promise-date ship-date
    WITH CENTERED.
END. 

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095